<?php
echo "<h1>DirectoryIterator</h1>";
$this_directory = new DirectoryIterator('./../..');
foreach($this_directory as $afile){
	print $afile."<br />";
}
echo "<h1>RecursiveIteratorIterator to iterate through files</h1>";
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('./../..'),true);
foreach($dir as $file)
{
	print $file."<br />";
}